package com.ciaojian.websocket.config;

import com.ciaojian.core.config.CoreWebConfig;
import com.ciaojian.core.interceptor.ApiIdempotentInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;

/**
 * @author Atlakyn
 */
@Configuration
public class SocketMvcConfig extends CoreWebConfig {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new ApiIdempotentInterceptor()).addPathPatterns("/**");
        super.addInterceptors(registry);
    }
}
